package com.learning_paicoding.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @Author hph
 * @Date 2025/07/20 18:36
 **/
@Data
public class UserLoginDTO {

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名")
    @TableField("user_name")
    private String userName;

    @NotBlank(message = "手机号不能为空")
    @Schema(description = "手机号")
    @TableField("telephone")
    private String telephone;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    @TableField("password")
    private String password;


    @Schema(description = "登录方式: 0-微信登录，1-账号密码登录")
    @TableField("login_type")
    private Byte loginType;

    @Schema(description = "是否删除")
    @TableField("deleted")
    private Byte deleted;

    @Schema(description = "最后更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

/*    @NotBlank(message = "token不能为空")
    @Schema(description = "token")
    private String token;*/
}
